package com.hugong.yxx.wksp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


@SpringBootApplication
public class WkspApplication {

    public static void main(String[] args) {
        SpringApplication.run(WkspApplication.class, args);
    }

    /**
     * 必须配置Spring支持的websocket的类
     *
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
